package com.heo.pojo;

import com.heo.util.ByteHelper;

public class EndChargingInfoEntity  extends BaseEntity{

	private static final long serialVersionUID = 1L;
	private int passageway;
	private int sett;
	private int chargingStatus;//充电状态  1 开始充电上传；2 结束充电上传；3 终端停电上传；4 充电过程实时上传
	private String batch;
	private String chargeAmount;
	private String chargeAmountEnd;//
	private String chargePower;//终端硬件版本号
	private String chargePowerEnd;//终端固件版本号
	
	public EndChargingInfoEntity(String bodyHex) {
		batch = ByteHelper.strReversal(bodyHex.substring(0, 8));
		passageway = ByteHelper.hex16ToInt(bodyHex.substring(8, 10));
		chargingStatus = ByteHelper.hex16ToInt(bodyHex.substring(10, 12));
		sett = ByteHelper.hex16ToInt(bodyHex.substring(36, 38));
		chargePower = ByteHelper.strReversal(bodyHex.substring(38, 46));
		chargePowerEnd = ByteHelper.strReversal(bodyHex.substring(46, 54));
		chargeAmount = ByteHelper.strReversal(bodyHex.substring(54, 62));
		chargeAmountEnd = ByteHelper.strReversal(bodyHex.substring(62, 70));
	}

	public int getPassageway() {
		return passageway;
	}

	public void setPassageway(int passageway) {
		this.passageway = passageway;
	}

	public int getSett() {
		return sett;
	}

	public void setSett(int sett) {
		this.sett = sett;
	}

	public int getChargingStatus() {
		return chargingStatus;
	}

	public void setChargingStatus(int chargingStatus) {
		this.chargingStatus = chargingStatus;
	}

	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	public String getChargeAmount() {
		return chargeAmount;
	}

	public void setChargeAmount(String chargeAmount) {
		this.chargeAmount = chargeAmount;
	}

	public String getChargeAmountEnd() {
		return chargeAmountEnd;
	}

	public void setChargeAmountEnd(String chargeAmountEnd) {
		this.chargeAmountEnd = chargeAmountEnd;
	}

	public String getChargePower() {
		return chargePower;
	}

	public void setChargePower(String chargePower) {
		this.chargePower = chargePower;
	}

	public String getChargePowerEnd() {
		return chargePowerEnd;
	}

	public void setChargePowerEnd(String chargePowerEnd) {
		this.chargePowerEnd = chargePowerEnd;
	}
}
